package com.explment.lens.controller.role;

import com.explment.lens.entity.SysRoleMenuEntity;
import com.explment.lens.service.SysRoleMenuService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 角色菜单关联 controller
 */
@RestController
@RequestMapping("/sysRoleMenuEntity")
public class SysRoleMenuController {
    @Autowired
    private SysRoleMenuService sysRoleMenuEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysRoleMenuEntityService.getById(id));
    }
}